home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / ANSI Headers / setjmp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-12  |  684 b   |  41 lines  |  [TEXT/MMCC]

  1. /*
  2.  *    File:        setjmp.h
  3.  *                ©1993-1995 metrowerks Inc. All rights reserved
  4.  *    Author:        Andreas Hommel
  5.  *
  6.  *    Content:    Interface to setjmp/longjmp ANSI functions ...
  7.  */
  8.  
  9. #ifndef __SETJMP__
  10. #define __SETJMP__
  11.  
  12. #pragma options align=mac68k
  13.  
  14. #ifdef    powerc
  15. typedef    long *jmp_buf[70];
  16. #define    setjmp(jmp_buf)            __setjmp(jmp_buf)
  17. #else
  18. typedef long *jmp_buf[12];        /*    D3-D7,PC,A2-A4,A6,SP,__local_destructor_chain */
  19. #endif
  20.  
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24.  
  25. #ifdef    powerc
  26. int    __setjmp(jmp_buf);
  27. void longjmp(jmp_buf,int);
  28. #else
  29. int setjmp(jmp_buf);
  30. void longjmp(jmp_buf,int);
  31. #endif
  32. void __longjmp_ldestr(jmp_buf,int);
  33.  
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37.  
  38. #pragma options align=reset
  39.  
  40. #endif
  41.